
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Html Tag · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="http-https-http2.html" />
    
    
    <link rel="prev" href="history.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    前端进阶
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="Grid System.html">
            
                <a href="Grid System.html">
            
                    
                    Grid System
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="Handwritten signature.html">
            
                <a href="Handwritten signature.html">
            
                    
                    Handwritten Signature
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="Mobile Soft Keyboard.html">
            
                <a href="Mobile Soft Keyboard.html">
            
                    
                    Mobile Soft Keyboard
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="authentication.html">
            
                <a href="authentication.html">
            
                    
                    Authentication
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    Code
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" >
            
                <span>
            
                    
                    Four Operations
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="control loading.html">
            
                <a href="control loading.html">
            
                    
                    Control Loading
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="downfile.html">
            
                <a href="downfile.html">
            
                    
                    Downfile
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="dynamic-routing.html">
            
                <a href="dynamic-routing.html">
            
                    
                    Dynamic Routing
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="ecs.html">
            
                <a href="ecs.html">
            
                    
                    Ecs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="engineering.html">
            
                <a href="engineering.html">
            
                    
                    Engineering
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="eslint-vscode-format.html">
            
                <a href="eslint-vscode-format.html">
            
                    
                    Eslint Vscode Format
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="eventloop.html">
            
                <a href="eventloop.html">
            
                    
                    Eventloop
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="four-operations-1.html">
            
                <a href="four-operations-1.html">
            
                    
                    Four Operations 1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="four-operations-2.html">
            
                <a href="four-operations-2.html">
            
                    
                    Four Operations 2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="four-operations-3.html">
            
                <a href="four-operations-3.html">
            
                    
                    Four Operations 3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="four-operations-4.html">
            
                <a href="four-operations-4.html">
            
                    
                    Four Operations 4
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="front end summary.html">
            
                <a href="front end summary.html">
            
                    
                    Front End Summary
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20" data-path="git commit style.html">
            
                <a href="git commit style.html">
            
                    
                    Git Commit Style
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="git-commands.html">
            
                <a href="git-commands.html">
            
                    
                    Git Commands
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.22" data-path="high-quality-code.html">
            
                <a href="high-quality-code.html">
            
                    
                    High Quality Code
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.23" data-path="history.html">
            
                <a href="history.html">
            
                    
                    History
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.24" data-path="html-tag.html">
            
                <a href="html-tag.html">
            
                    
                    Html Tag
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.25" data-path="http-https-http2.html">
            
                <a href="http-https-http2.html">
            
                    
                    Http Https Http2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.26" data-path="ignore log.html">
            
                <a href="ignore log.html">
            
                    
                    Ignore Log
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.27" >
            
                <span>
            
                    
                    Imgs
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.28" data-path="javascript-optimization.html">
            
                <a href="javascript-optimization.html">
            
                    
                    Javascript Optimization
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29" data-path="local application.html">
            
                <a href="local application.html">
            
                    
                    Local Application
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.30" data-path="locality.html">
            
                <a href="locality.html">
            
                    
                    Locality
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.31" data-path="loop-unrolling.html">
            
                <a href="loop-unrolling.html">
            
                    
                    Loop Unrolling
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.32" data-path="mobile recommendation.html">
            
                <a href="mobile recommendation.html">
            
                    
                    Mobile Recommendation
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.33" data-path="modal.html">
            
                <a href="modal.html">
            
                    
                    Modal
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.34" data-path="monitor.html">
            
                <a href="monitor.html">
            
                    
                    Monitor
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.35" data-path="performance.html">
            
                <a href="performance.html">
            
                    
                    Performance
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.36" data-path="print-talbe.html">
            
                <a href="print-talbe.html">
            
                    
                    Print Talbe
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.37" data-path="promise.html">
            
                <a href="promise.html">
            
                    
                    Promise
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.38" data-path="teaching.html">
            
                <a href="teaching.html">
            
                    
                    Teaching
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.39" data-path="vue refresh.html">
            
                <a href="vue refresh.html">
            
                    
                    Vue Refresh
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.40" data-path="vue-page-not-refresh.html">
            
                <a href="vue-page-not-refresh.html">
            
                    
                    Vue Page Not Refresh
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.41" data-path="why-learn-theory.html">
            
                <a href="why-learn-theory.html">
            
                    
                    Why Learn Theory
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Html Tag</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="html-&#x5143;&#x7D20;&#x6807;&#x7B7E;&#x8BED;&#x4E49;&#x5316;&#x53CA;&#x4F7F;&#x7528;&#x573A;&#x666F;">HTML &#x5143;&#x7D20;&#x6807;&#x7B7E;&#x8BED;&#x4E49;&#x5316;&#x53CA;&#x4F7F;&#x7528;&#x573A;&#x666F;</h1>
<p>&#x7075;&#x9B42;&#x4E09;&#x95EE;&#xFF1A;</p>
<ol>
<li>&#x6807;&#x7B7E;&#x8BED;&#x4E49;&#x5316;&#x662F;&#x4EC0;&#x4E48;&#xFF1F;</li>
<li>&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x6807;&#x7B7E;&#x8BED;&#x4E49;&#x5316;&#xFF1F;</li>
<li>&#x6807;&#x7B7E;&#x8BED;&#x4E49;&#x5316;&#x4F7F;&#x7528;&#x573A;&#x666F;&#x6709;&#x54EA;&#x4E9B;&#xFF1F;</li>
</ol>
<p>&#x4E0B;&#x9762;&#x8BA9;&#x6211;&#x4EEC;&#x8DDF;&#x7740;&#x8FD9;&#x4E09;&#x4E2A;&#x95EE;&#x9898;&#x6765;&#x5C55;&#x5F00;&#x4E00;&#x4E0B;&#x672C;&#x6587;&#x7684;&#x5185;&#x5BB9;&#x3002;</p>
<h3 id="&#x4E00;&#x3001;&#x6807;&#x7B7E;&#x8BED;&#x4E49;&#x5316;&#x662F;&#x4EC0;&#x4E48;&#xFF1F;">&#x4E00;&#x3001;&#x6807;&#x7B7E;&#x8BED;&#x4E49;&#x5316;&#x662F;&#x4EC0;&#x4E48;&#xFF1F;</h3>
<p>&#x6807;&#x7B7E;&#x8BED;&#x4E49;&#x5316;&#x5C31;&#x662F;&#x8BA9;&#x5143;&#x7D20;&#x6807;&#x7B7E;&#x505A;&#x9002;&#x5F53;&#x7684;&#x4E8B;&#x60C5;&#x3002;&#x4F8B;&#x5982; <code>p</code> &#x6807;&#x7B7E;&#x5C31;&#x662F;&#x4EE3;&#x8868;&#x6587;&#x672C;&#xFF0C;<code>button</code> &#x6807;&#x7B7E;&#x4EE3;&#x8868;&#x6309;&#x94AE;&#xFF0C;<code>nav</code> &#x6807;&#x7B7E;&#x4EE3;&#x8868;&#x5BFC;&#x822A;&#x7B49;&#x7B49;&#x3002;</p>
<h3 id="&#x4E8C;&#x3001;&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x6807;&#x7B7E;&#x8BED;&#x4E49;&#x5316;&#xFF1F;">&#x4E8C;&#x3001;&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x6807;&#x7B7E;&#x8BED;&#x4E49;&#x5316;&#xFF1F;</h3>
<p>&#x5176;&#x5B9E;&#x6807;&#x7B7E;&#x8BED;&#x4E49;&#x5316;&#x662F;&#x7ED9;&#x6D4F;&#x89C8;&#x5668;&#x548C;&#x641C;&#x7D22;&#x5F15;&#x64CE;&#x770B;&#x7684;&#x3002;&#x6CA1;&#x6709;&#x4EBA;&#x5173;&#x5FC3;&#x4F60;&#x5199;&#x7684; HTML &#x4EE3;&#x7801;&#x6709;&#x6CA1;&#x6709;&#x6B63;&#x786E;&#x7684;&#x4F7F;&#x7528;&#x8BED;&#x4E49;&#x5316;&#xFF0C;&#x53EA;&#x6709;&#x5B83;&#x4EEC;&#x5173;&#x5FC3;&#x8FD9;&#x4EF6;&#x4E8B;&#x60C5;&#xFF0C;&#x662F;&#x4E0D;&#x662F;&#x5F88;&#x6696;&#x5FC3;&#xFF1F;</p>
<h4 id="&#x4E3A;&#x4EC0;&#x4E48;&#x6D4F;&#x89C8;&#x5668;&#x5173;&#x5FC3;&#xFF1F;">&#x4E3A;&#x4EC0;&#x4E48;&#x6D4F;&#x89C8;&#x5668;&#x5173;&#x5FC3;&#xFF1F;</h4>
<p>DOM &#x7684;&#x5927;&#x90E8;&#x5206;&#x5185;&#x5BB9;&#x5177;&#x6709;&#x9690;&#x5F0F;&#x8BED;&#x4E49;&#x542B;&#x4E49;&#x3002; &#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#xFF0C;DOM &#x91C7;&#x7528;&#x7684;&#x539F;&#x751F; HTML &#x5143;&#x7D20;&#x80FD;&#x591F;&#x88AB;&#x6D4F;&#x89C8;&#x5668;&#x8BC6;&#x522B;&#xFF0C;&#x5E76;&#x4E14;&#x53EF;&#x4EE5;&#x9884;&#x6D4B;&#x5176;&#x5728;&#x5404;&#x7C7B;&#x5E73;&#x53F0;&#x4E0A;&#x7684;&#x5DE5;&#x4F5C;&#x65B9;&#x5F0F;&#x3002;</p>
<p>&#x4F8B;&#x5982;&#x7528; <code>div</code> &#x5B9E;&#x73B0;&#x7684;&#x6309;&#x94AE;&#x548C;&#x7528;&#x539F;&#x751F; <code>button</code> &#x5B9E;&#x73B0;&#x7684;&#x6309;&#x94AE;&#x5C31;&#x6709;&#x4E00;&#x4E9B;&#x533A;&#x522B;&#xFF0C;&#x5728;&#x8868;&#x5355;&#x5185; <code>button</code> &#x53EF;&#x4EE5;&#x4E0D;&#x7528;&#x7ED1;&#x5B9A; onclick &#x4E8B;&#x4EF6;&#x5C31;&#x53EF;&#x4EE5;&#x63D0;&#x4EA4;&#x8868;&#x5355;&#x5185;&#x5BB9;&#xFF0C;&#x7528; <code>div</code> &#x5B9E;&#x73B0;&#x7684;&#x6309;&#x94AE;&#x5219;&#x4E0D;&#x884C;&#x3002;&#x53E6;&#x5916;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#x6309; tab &#x952E;&#x76D8;&#x53EF;&#x4EE5;&#x5728; <code>button</code> &#x4E4B;&#x95F4;&#x6765;&#x56DE;&#x5207;&#x6362;&#xFF0C;&#x800C; <code>div</code> &#x5219;&#x4E0D;&#x53EF;&#x4EE5;&#x3002;</p>
<p>&#x8FD8;&#x6709; <code>input</code> &#x6807;&#x7B7E; type &#x5C5E;&#x6027;&#xFF0C;&#x7531;&#x4E8E;&#x503C;&#x7684;&#x4E0D;&#x540C;&#x5728;&#x624B;&#x673A;&#x4E0A;&#x7684;&#x8868;&#x73B0;&#x4E5F;&#x4E0D;&#x540C;&#x3002;&#x4F8B;&#x5982; type=&quot;tel&quot; &#x548C; type=&quot;number&quot; &#x5F39;&#x51FA;&#x6765;&#x7684;&#x6570;&#x5B57;&#x952E;&#x76D8;&#x662F;&#x4E0D;&#x4E00;&#x6837;&#x7684;&#x3002;</p>
<h4 id="&#x4E3A;&#x4EC0;&#x4E48;&#x641C;&#x7D22;&#x5F15;&#x64CE;&#x5173;&#x5FC3;&#xFF1F;">&#x4E3A;&#x4EC0;&#x4E48;&#x641C;&#x7D22;&#x5F15;&#x64CE;&#x5173;&#x5FC3;&#xFF1F;</h4>
<p>&#x641C;&#x7D22;&#x5F15;&#x64CE;&#x7684;&#x722C;&#x866B;&#x6839;&#x636E;&#x6807;&#x7B7E;&#x6765;&#x786E;&#x5B9A;&#x4E0A;&#x4E0B;&#x6587;&#x3001;&#x5173;&#x952E;&#x5B57;&#x7684;&#x6743;&#x91CD;&#xFF0C;&#x6709;&#x5229;&#x4E8E; SEO&#x3002;</p>
<p>&#x5982;&#x679C;&#x4F60;&#x89C9;&#x5F97;&#x4EE5;&#x4E0A;&#x4E24;&#x70B9;&#x7406;&#x7531;&#x90FD;&#x4E0D;&#x80FD;&#x6253;&#x52A8;&#x4F60;&#xFF0C;&#x4ECE;&#x800C;&#x6B63;&#x786E;&#x7684;&#x4F7F;&#x7528;&#x8BED;&#x4E49;&#x5316;&#xFF0C;&#x6CA1;&#x6709;&#x5173;&#x7CFB;&#xFF0C;&#x4F7F;&#x7528; <code>div</code> &#x4E00;&#x628A;&#x68AD;&#x4E5F;&#x662F;&#x53EF;&#x4EE5;&#x7684;&#x3002;</p>
<h3 id="&#x4E09;&#x3001;&#x6807;&#x7B7E;&#x8BED;&#x4E49;&#x5316;&#x4F7F;&#x7528;&#x573A;&#x666F;&#x6709;&#x54EA;&#x4E9B;&#xFF1F;">&#x4E09;&#x3001;&#x6807;&#x7B7E;&#x8BED;&#x4E49;&#x5316;&#x4F7F;&#x7528;&#x573A;&#x666F;&#x6709;&#x54EA;&#x4E9B;&#xFF1F;</h3>
<p><img src="https://img-blog.csdnimg.cn/20200401134944990.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3E0MTEwMjAzODI=,size_16,color_FFFFFF,t_70" alt="&#x5728;&#x8FD9;&#x91CC;&#x63D2;&#x5165;&#x56FE;&#x7247;&#x63CF;&#x8FF0;">
&#x4E0A;&#x9762;&#x662F;&#x4E00;&#x4E2A;&#x6BD4;&#x8F83;&#x5E38;&#x89C1;&#x7684;&#x6574;&#x4F53;&#x5E03;&#x5C40;&#x65B9;&#x5F0F;&#xFF0C;&#x5176;&#x4ED6;&#x5E03;&#x5C40;&#x7C7B;&#x578B;&#x5176;&#x5B9E;&#x90FD;&#x662F;&#x4E07;&#x53D8;&#x4E0D;&#x79BB;&#x5176;&#x5B97;&#xFF0C;&#x9003;&#x4E0D;&#x51FA;&#x8FD9;&#x4E2A;&#x4F7F;&#x7528;&#x6846;&#x67B6;&#xFF08;&#x6587;&#x672B;&#x9644;&#x4E0A; HTML &#x6E90;&#x7801;&#xFF09;&#x3002;</p>
<p>&#x9664;&#x4E86;&#x6574;&#x4F53;&#x5E03;&#x5C40;&#x5916;&#xFF0C;&#x6211;&#x4EEC;&#x8FD8;&#x8981;&#x66F4;&#x7EC6;&#x8282;&#x4E00;&#x70B9;&#xFF0C;&#x5173;&#x6CE8;&#x5176;&#x4ED6;&#x6807;&#x7B7E;&#x7684;&#x4F7F;&#x7528;&#x65B9;&#x5F0F;&#x3002;&#x4F8B;&#x5982;&#xFF1A;</p>
<ol>
<li><code>a</code> &#x6807;&#x7B7E;&#x7528;&#x4E8E;&#x8DF3;&#x8F6C;&#x3002;</li>
<li><code>h1</code> - <code>h5</code> &#x7528;&#x4E8E;&#x6807;&#x9898;</li>
<li><code>b</code> <code>strong</code> &#x7528;&#x4E8E;&#x5F3A;&#x8C03;</li>
<li><code>ul</code> <code>li</code> &#x7528;&#x4E8E;&#x5217;&#x8868;</li>
</ol>
<p>...
&#x8FD9;&#x53EA;&#x662F;&#x5176;&#x4E2D;&#x7684;&#x4E00;&#x90E8;&#x5206;&#x6807;&#x7B7E;&#x4F7F;&#x7528;&#x65B9;&#x5F0F;&#xFF0C;&#x66F4;&#x591A;&#x7684;&#x8FD8;&#x5F97;&#x53C2;&#x8003;&#x6587;&#x6863;&#x3002;</p>
<p>&#x65B9;&#x4FBF;&#x81EA;&#x5DF1;&#xFF0C;&#x65B9;&#x4FBF;&#x4ED6;&#x4EBA;&#xFF0C;&#x8BF7;&#x6B63;&#x786E;&#x4F7F;&#x7528;&#x8BED;&#x4E49;&#x5316;&#x3002;</p>
<h3 id="&#x53C2;&#x8003;&#x8D44;&#x6599;">&#x53C2;&#x8003;&#x8D44;&#x6599;</h3>
<ul>
<li><a href="https://developer.mozilla.org/zh-CN/docs/Web/Guide/HTML/HTML5/HTML5_element_list" target="_blank">HTML5 &#x6807;&#x7B7E;&#x5217;&#x8868;</a></li>
<li><a href="https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element" target="_blank">HTML &#x5143;&#x7D20;&#x53C2;&#x8003;</a></li>
<li><a href="https://developers.google.com/web/fundamentals/accessibility/semantics-builtin/the-accessibility-tree?hl=zh-cn" target="_blank">&#x539F;&#x751F; HTML &#x4E2D;&#x7684;&#x8BED;&#x4E49;</a></li>
</ul>
<h3 id="&#x6587;&#x4E2D;-demo-&#x6E90;&#x7801;">&#x6587;&#x4E2D; DEMO &#x6E90;&#x7801;</h3>
<pre><code class="lang-html"><span class="hljs-meta">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">html</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">charset</span>=<span class="hljs-string">&quot;UTF-8&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">name</span>=<span class="hljs-string">&quot;viewport&quot;</span> <span class="hljs-attr">content</span>=<span class="hljs-string">&quot;width=device-width, initial-scale=1.0&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">http-equiv</span>=<span class="hljs-string">&quot;X-UA-Compatible&quot;</span> <span class="hljs-attr">content</span>=<span class="hljs-string">&quot;ie=edge&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">title</span>&gt;</span>demo1<span class="hljs-tag">&lt;/<span class="hljs-name">title</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">style</span>&gt;</span><span class="undefined">
        html, body {
            height: 100%;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        main {
            height: calc(100% - 120px);
            border: 1px solid blue;
        }
        header, footer {
            height: 60px;;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid red;
        }
        header {
            justify-content: flex-end;
        }
        ul {
            display: flex;
            align-items: center;
            justify-content: space-around;
        }
        li {
            list-style: none;
            border: 1px solid orange;
            height: 60px;
            line-height: 60px;
            width: 100px;
            text-align: center;
        }
        main {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        aside {
            width: 20%;
            border: 1px solid #000;
            height: 100%;
        }
        .right {
            width: 80%;
            height: 100%;
        }
        section {
            height: 200px;
            border: 1px solid green;
        }
    </span><span class="hljs-tag">&lt;/<span class="hljs-name">style</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">header</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">nav</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">ul</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span>1<span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span>2<span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span>3<span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span>4<span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">nav</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">header</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">main</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">aside</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x4FA7;&#x8FB9;&#x680F; aside<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">aside</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;right&quot;</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">section</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>p1<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>p2<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-name">section</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">section</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>p3<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>p4<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-name">section</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">main</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">footer</span>&gt;</span>

    <span class="hljs-tag">&lt;/<span class="hljs-name">footer</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span>
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="history.html" class="navigation navigation-prev " aria-label="Previous page: History">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="http-https-http2.html" class="navigation navigation-next " aria-label="Next page: Http Https Http2">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Html Tag","level":"1.24","depth":1,"next":{"title":"Http Https Http2","level":"1.25","depth":1,"path":"前端进阶/http-https-http2.md","ref":"前端进阶/http-https-http2.md","articles":[]},"previous":{"title":"History","level":"1.23","depth":1,"path":"前端进阶/history.md","ref":"前端进阶/history.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["summary","livereload"],"pluginsConfig":{"summary":{},"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"前端进阶/html-tag.md","mtime":"2021-02-15T12:04:36.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-03-24T08:50:55.666Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

